Integrand size = 27, antiderivative size = 157 \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=-\frac {A}{a^6 x}-\frac {A b-a B}{5 a^2 (a+b x)^5}-\frac {2 A b-a B}{4 a^3 (a+b x)^4}-\frac {3 A b-a B}{3 a^4 (a+b x)^3}-\frac {4 A b-a B}{2 a^5 (a+b x)^2}-\frac {5 A b-a B}{a^6 (a+b x)}-\frac {(6 A b-a B) \log (x)}{a^7}+\frac {(6 A b-a B) \log (a+b x)}{a^7} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {27, 78} \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=-\frac {\log (x) (6 A b-a B)}{a^7}+\frac {(6 A b-a B) \log (a+b x)}{a^7}-\frac {5 A b-a B}{a^6 (a+b x)}-\frac {A}{a^6 x}-\frac {4 A b-a B}{2 a^5 (a+b x)^2}-\frac {3 A b-a B}{3 a^4 (a+b x)^3}-\frac {2 A b-a B}{4 a^3 (a+b x)^4}-\frac {A b-a B}{5 a^2 (a+b x)^5} \]
[In]
[Out]
Rule 27
Rule 78
Rubi steps \begin{align*} \text {integral}& = \int \frac {A+B x}{x^2 (a+b x)^6} \, dx \\ & = \int \left (\frac {A}{a^6 x^2}+\frac {-6 A b+a B}{a^7 x}-\frac {b (-A b+a B)}{a^2 (a+b x)^6}-\frac {b (-2 A b+a B)}{a^3 (a+b x)^5}-\frac {b (-3 A b+a B)}{a^4 (a+b x)^4}-\frac {b (-4 A b+a B)}{a^5 (a+b x)^3}-\frac {b (-5 A b+a B)}{a^6 (a+b x)^2}-\frac {b (-6 A b+a B)}{a^7 (a+b x)}\right ) \, dx \\ & = -\frac {A}{a^6 x}-\frac {A b-a B}{5 a^2 (a+b x)^5}-\frac {2 A b-a B}{4 a^3 (a+b x)^4}-\frac {3 A b-a B}{3 a^4 (a+b x)^3}-\frac {4 A b-a B}{2 a^5 (a+b x)^2}-\frac {5 A b-a B}{a^6 (a+b x)}-\frac {(6 A b-a B) \log (x)}{a^7}+\frac {(6 A b-a B) \log (a+b x)}{a^7} \\ \end{align*}
Time = 0.06 (sec) , antiderivative size = 142, normalized size of antiderivative = 0.90 \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=\frac {-\frac {60 a A}{x}+\frac {12 a^5 (-A b+a B)}{(a+b x)^5}+\frac {15 a^4 (-2 A b+a B)}{(a+b x)^4}+\frac {20 a^3 (-3 A b+a B)}{(a+b x)^3}+\frac {30 a^2 (-4 A b+a B)}{(a+b x)^2}+\frac {60 a (-5 A b+a B)}{a+b x}+60 (-6 A b+a B) \log (x)+60 (6 A b-a B) \log (a+b x)}{60 a^7} \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 148, normalized size of antiderivative = 0.94
method | result | size |
default | \(-\frac {A}{a^{6} x}+\frac {\left (-6 A b +B a \right ) \ln \left (x \right )}{a^{7}}-\frac {2 A b -B a}{4 a^{3} \left (b x +a \right )^{4}}-\frac {3 A b -B a}{3 a^{4} \left (b x +a \right )^{3}}-\frac {4 A b -B a}{2 a^{5} \left (b x +a \right )^{2}}-\frac {5 A b -B a}{a^{6} \left (b x +a \right )}+\frac {\left (6 A b -B a \right ) \ln \left (b x +a \right )}{a^{7}}-\frac {A b -B a}{5 a^{2} \left (b x +a \right )^{5}}\) | \(148\) |
norman | \(\frac {-\frac {A}{a}+\frac {5 b \left (6 A b -B a \right ) x^{2}}{a^{3}}+\frac {5 b^{2} \left (18 A b -3 B a \right ) x^{3}}{a^{4}}+\frac {5 b^{3} \left (66 A b -11 B a \right ) x^{4}}{3 a^{5}}+\frac {5 b^{4} \left (150 A b -25 B a \right ) x^{5}}{12 a^{6}}+\frac {b^{5} \left (822 A b -137 B a \right ) x^{6}}{60 a^{7}}}{x \left (b x +a \right )^{5}}+\frac {\left (6 A b -B a \right ) \ln \left (b x +a \right )}{a^{7}}-\frac {\left (6 A b -B a \right ) \ln \left (x \right )}{a^{7}}\) | \(153\) |
risch | \(\frac {-\frac {b^{4} \left (6 A b -B a \right ) x^{5}}{a^{6}}-\frac {9 b^{3} \left (6 A b -B a \right ) x^{4}}{2 a^{5}}-\frac {47 b^{2} \left (6 A b -B a \right ) x^{3}}{6 a^{4}}-\frac {77 b \left (6 A b -B a \right ) x^{2}}{12 a^{3}}-\frac {137 \left (6 A b -B a \right ) x}{60 a^{2}}-\frac {A}{a}}{x \left (b^{2} x^{2}+2 a b x +a^{2}\right )^{2} \left (b x +a \right )}-\frac {6 \ln \left (x \right ) A b}{a^{7}}+\frac {\ln \left (x \right ) B}{a^{6}}+\frac {6 \ln \left (-b x -a \right ) A b}{a^{7}}-\frac {\ln \left (-b x -a \right ) B}{a^{6}}\) | \(178\) |
parallelrisch | \(-\frac {60 B \ln \left (b x +a \right ) x^{6} a \,b^{5}-1800 A \ln \left (b x +a \right ) x^{5} a \,b^{5}+300 B \ln \left (b x +a \right ) x^{5} a^{2} b^{4}-3600 A \ln \left (b x +a \right ) x^{4} a^{2} b^{4}+600 B \ln \left (b x +a \right ) x^{4} a^{3} b^{3}-3600 A \ln \left (b x +a \right ) x^{3} a^{3} b^{3}+600 B \ln \left (b x +a \right ) x^{3} a^{4} b^{2}-360 A \ln \left (b x +a \right ) x^{6} b^{6}-1800 a^{4} A \,b^{2} x^{2}-5400 a^{3} A \,b^{3} x^{3}-6600 a^{2} A \,b^{4} x^{4}-3750 a A \,b^{5} x^{5}-822 A \,b^{6} x^{6}+60 B \ln \left (b x +a \right ) x \,a^{6}+360 A \ln \left (x \right ) x^{6} b^{6}-60 B \ln \left (x \right ) x \,a^{6}+60 A \,a^{6}+900 x^{3} B \,a^{4} b^{2}+300 x^{2} B \,a^{5} b +137 x^{6} B a \,b^{5}+625 x^{5} B \,b^{4} a^{2}+1100 x^{4} B \,a^{3} b^{3}+360 A \ln \left (x \right ) x \,a^{5} b +3600 A \ln \left (x \right ) x^{4} a^{2} b^{4}-600 B \ln \left (x \right ) x^{4} a^{3} b^{3}+1800 A \ln \left (x \right ) x^{2} a^{4} b^{2}-1800 A \ln \left (b x +a \right ) x^{2} a^{4} b^{2}-300 B \ln \left (x \right ) x^{2} a^{5} b +300 B \ln \left (b x +a \right ) x^{2} a^{5} b -360 A \ln \left (b x +a \right ) x \,a^{5} b -60 B \ln \left (x \right ) x^{6} a \,b^{5}+1800 A \ln \left (x \right ) x^{5} a \,b^{5}-300 B \ln \left (x \right ) x^{5} a^{2} b^{4}-600 B \ln \left (x \right ) x^{3} a^{4} b^{2}+3600 A \ln \left (x \right ) x^{3} a^{3} b^{3}}{60 a^{7} x \left (b^{2} x^{2}+2 a b x +a^{2}\right )^{2} \left (b x +a \right )}\) | \(500\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 427 vs. \(2 (142) = 284\).
Time = 0.38 (sec) , antiderivative size = 427, normalized size of antiderivative = 2.72 \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=-\frac {60 \, A a^{6} - 60 \, {\left (B a^{2} b^{4} - 6 \, A a b^{5}\right )} x^{5} - 270 \, {\left (B a^{3} b^{3} - 6 \, A a^{2} b^{4}\right )} x^{4} - 470 \, {\left (B a^{4} b^{2} - 6 \, A a^{3} b^{3}\right )} x^{3} - 385 \, {\left (B a^{5} b - 6 \, A a^{4} b^{2}\right )} x^{2} - 137 \, {\left (B a^{6} - 6 \, A a^{5} b\right )} x + 60 \, {\left ({\left (B a b^{5} - 6 \, A b^{6}\right )} x^{6} + 5 \, {\left (B a^{2} b^{4} - 6 \, A a b^{5}\right )} x^{5} + 10 \, {\left (B a^{3} b^{3} - 6 \, A a^{2} b^{4}\right )} x^{4} + 10 \, {\left (B a^{4} b^{2} - 6 \, A a^{3} b^{3}\right )} x^{3} + 5 \, {\left (B a^{5} b - 6 \, A a^{4} b^{2}\right )} x^{2} + {\left (B a^{6} - 6 \, A a^{5} b\right )} x\right )} \log \left (b x + a\right ) - 60 \, {\left ({\left (B a b^{5} - 6 \, A b^{6}\right )} x^{6} + 5 \, {\left (B a^{2} b^{4} - 6 \, A a b^{5}\right )} x^{5} + 10 \, {\left (B a^{3} b^{3} - 6 \, A a^{2} b^{4}\right )} x^{4} + 10 \, {\left (B a^{4} b^{2} - 6 \, A a^{3} b^{3}\right )} x^{3} + 5 \, {\left (B a^{5} b - 6 \, A a^{4} b^{2}\right )} x^{2} + {\left (B a^{6} - 6 \, A a^{5} b\right )} x\right )} \log \left (x\right )}{60 \, {\left (a^{7} b^{5} x^{6} + 5 \, a^{8} b^{4} x^{5} + 10 \, a^{9} b^{3} x^{4} + 10 \, a^{10} b^{2} x^{3} + 5 \, a^{11} b x^{2} + a^{12} x\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 275 vs. \(2 (136) = 272\).
Time = 0.59 (sec) , antiderivative size = 275, normalized size of antiderivative = 1.75 \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=\frac {- 60 A a^{5} + x^{5} \left (- 360 A b^{5} + 60 B a b^{4}\right ) + x^{4} \left (- 1620 A a b^{4} + 270 B a^{2} b^{3}\right ) + x^{3} \left (- 2820 A a^{2} b^{3} + 470 B a^{3} b^{2}\right ) + x^{2} \left (- 2310 A a^{3} b^{2} + 385 B a^{4} b\right ) + x \left (- 822 A a^{4} b + 137 B a^{5}\right )}{60 a^{11} x + 300 a^{10} b x^{2} + 600 a^{9} b^{2} x^{3} + 600 a^{8} b^{3} x^{4} + 300 a^{7} b^{4} x^{5} + 60 a^{6} b^{5} x^{6}} + \frac {\left (- 6 A b + B a\right ) \log {\left (x + \frac {- 6 A a b + B a^{2} - a \left (- 6 A b + B a\right )}{- 12 A b^{2} + 2 B a b} \right )}}{a^{7}} - \frac {\left (- 6 A b + B a\right ) \log {\left (x + \frac {- 6 A a b + B a^{2} + a \left (- 6 A b + B a\right )}{- 12 A b^{2} + 2 B a b} \right )}}{a^{7}} \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 202, normalized size of antiderivative = 1.29 \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=-\frac {60 \, A a^{5} - 60 \, {\left (B a b^{4} - 6 \, A b^{5}\right )} x^{5} - 270 \, {\left (B a^{2} b^{3} - 6 \, A a b^{4}\right )} x^{4} - 470 \, {\left (B a^{3} b^{2} - 6 \, A a^{2} b^{3}\right )} x^{3} - 385 \, {\left (B a^{4} b - 6 \, A a^{3} b^{2}\right )} x^{2} - 137 \, {\left (B a^{5} - 6 \, A a^{4} b\right )} x}{60 \, {\left (a^{6} b^{5} x^{6} + 5 \, a^{7} b^{4} x^{5} + 10 \, a^{8} b^{3} x^{4} + 10 \, a^{9} b^{2} x^{3} + 5 \, a^{10} b x^{2} + a^{11} x\right )}} - \frac {{\left (B a - 6 \, A b\right )} \log \left (b x + a\right )}{a^{7}} + \frac {{\left (B a - 6 \, A b\right )} \log \left (x\right )}{a^{7}} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 168, normalized size of antiderivative = 1.07 \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=\frac {{\left (B a - 6 \, A b\right )} \log \left ({\left | x \right |}\right )}{a^{7}} - \frac {{\left (B a b - 6 \, A b^{2}\right )} \log \left ({\left | b x + a \right |}\right )}{a^{7} b} - \frac {60 \, A a^{6} - 60 \, {\left (B a^{2} b^{4} - 6 \, A a b^{5}\right )} x^{5} - 270 \, {\left (B a^{3} b^{3} - 6 \, A a^{2} b^{4}\right )} x^{4} - 470 \, {\left (B a^{4} b^{2} - 6 \, A a^{3} b^{3}\right )} x^{3} - 385 \, {\left (B a^{5} b - 6 \, A a^{4} b^{2}\right )} x^{2} - 137 \, {\left (B a^{6} - 6 \, A a^{5} b\right )} x}{60 \, {\left (b x + a\right )}^{5} a^{7} x} \]
[In]
[Out]
Time = 0.15 (sec) , antiderivative size = 180, normalized size of antiderivative = 1.15 \[ \int \frac {A+B x}{x^2 \left (a^2+2 a b x+b^2 x^2\right )^3} \, dx=\frac {2\,\mathrm {atanh}\left (\frac {2\,b\,x}{a}+1\right )\,\left (6\,A\,b-B\,a\right )}{a^7}-\frac {\frac {A}{a}+\frac {137\,x\,\left (6\,A\,b-B\,a\right )}{60\,a^2}+\frac {47\,b^2\,x^3\,\left (6\,A\,b-B\,a\right )}{6\,a^4}+\frac {9\,b^3\,x^4\,\left (6\,A\,b-B\,a\right )}{2\,a^5}+\frac {b^4\,x^5\,\left (6\,A\,b-B\,a\right )}{a^6}+\frac {77\,b\,x^2\,\left (6\,A\,b-B\,a\right )}{12\,a^3}}{a^5\,x+5\,a^4\,b\,x^2+10\,a^3\,b^2\,x^3+10\,a^2\,b^3\,x^4+5\,a\,b^4\,x^5+b^5\,x^6} \]
[In]
[Out]